#include "comm.hpp"


int main()
{
    Init cli(CLIENT);
    char* str = cli.getStr();

    char c = 'A';
    while(c <= 'Z')
    {
        str[c-'A'] = c;
        c++;
        str[c-'A'] = '\0';
        sleep(1);
    }
    //1.创建key
    // int key = getKey();
    // cout << "client: " << toHex(key) << endl;

    // //获取共享内存
    // int shmid = getShm(key, SIZE);
    // cout << "client shmid: " << shmid << endl;

    // //3.关联共享内存
    // char* str = attachShm(shmid);

    // //通信


    // //4.断联
    // detachShm(str);
    
    return 0;
}
